<?php

namespace App\Modules\Task\Services;


use  App\Modules\Task\Models\DrawTask;

class DrawTaskService
{
    /**
     * 领取任务
     * param array $data
     */
    public static function addDrawTask($data=[]){
        return DrawTask::addDrawTask($data);
    }

    /**
     * 获取领取任务
     */
    public static function getDrawTask($task_code,$user_id){
        return DrawTask::getDrawTask($task_code,$user_id);
    }

    /**
     * 获取个人档案领取任务
     */
    public static function getHealthDrawTask($task_code,$user_id){
        return DrawTask::getHealthDrawTask($task_code,$user_id);
    }

    /**
     * 修改领取任务
     */
    public static function updateDrawTask($data){
        return DrawTask::updateDrawTask($data);
    }
}